package com.crm.controller;

import com.crm.base.ResponseResult;
import com.crm.domain.dto.QueryBusiness;
import com.crm.domain.dto.QueryPost;
import com.crm.domain.entity.Post;
import com.crm.service.PostService;
import com.github.pagehelper.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/system")
@RequiredArgsConstructor
@Api(tags = "岗位管理")
public class PostController {

    private final PostService postService;

    @GetMapping("/post/list")
    @ApiOperation(value = "分页查询")
    public ResponseResult getPostList(QueryPost queryPost){
//        Page<Post> page = postService.queryAll(queryPost);
        return ResponseResult.success();
    }
}
